// src/api/business/track.ts
import { Alova } from '@/utils/http/alova/index';

// 股道停车信息数据结构
interface TrackParkingInfo {
  coordinatesList: Array<{
    coordinatesId: string;
    latitude: number;
    longitude: number;
    sort: number;
    trackId: string;
  }>;
  createId: string;
  createName: string;
  createTime: string;
  orgId: string;
  parkingList: any[];
  stationId: string;
  trackId: string;
  trackLength: number;
  trackName: string;
  trackType: string;
  updateId: string;
  updateName: string;
  updateTime: string;
  trackTypeName: string;
}

const baseApi = '/web/proj/track';

/**
 * 获取股道停车信息列表
 */
export function getTrackParkingList(params: { orgId: string }) {
  return Alova.Post<InResult<TrackParkingInfo[]>>(baseApi + '/trackParking', { params });
}
